Skip to content

fix: reject malformed CODEMAP_PARSE_WORKERS values#121

Merged
SutuSebastian merged 1 commit into
mainfrom
fix/worker-count-env-validation
May 20, 2026
Merged

fix: reject malformed CODEMAP_PARSE_WORKERS values#121
SutuSebastian merged 1 commit into
mainfrom
fix/worker-count-env-validation

Conversation

@SutuSebastian
Copy link
Copy Markdown
Contributor

Summary

  • Validate the full CODEMAP_PARSE_WORKERS string as a decimal integer before applying the override.
  • Reject values like 2abc and 1.5 instead of silently truncating via parseInt.

Test plan

  • bun test src/worker-pool.test.ts
  • bun run typecheck

Require a full decimal-integer string before applying the worker-count override.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 20, 2026

🦋 Changeset detected

Latest commit: 85de106

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 20, 2026

Warning

Rate limit exceeded

@SutuSebastian has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 44 minutes and 1 second before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 13dd2387-0a17-412f-88d9-e1dd539e0216

📥 Commits

Reviewing files that changed from the base of the PR and between 17dcbd1 and 85de106.

📒 Files selected for processing (3)
  • .changeset/fix-worker-count-env-validation.md
  • src/worker-pool.test.ts
  • src/worker-pool.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/worker-count-env-validation

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@SutuSebastian SutuSebastian merged commit f5d013c into main May 20, 2026
12 checks passed
@SutuSebastian SutuSebastian deleted the fix/worker-count-env-validation branch May 20, 2026 16:39
@github-actions github-actions Bot mentioned this pull request May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant